<!DOCTYPE html>
<html lang="en">
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <meta content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no" name="viewport">
    <title>亿码通平台</title>
    <script src="jquery.js"></script>
    <script src="send.js"></script>
    <script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <style>
        div.header {
            height: 30px;
            line-height: 30px;
            padding: 10px;
            font-size: 25px;
            font-weight: bold;
            background: #9aa1ba;
            color: white;
        }

        div.title {
            margin: 10px;
            font-size: 20px;
            font-weight: bold;
        }

        div.content {
            padding: 5px;
            line-height: 22px;
            text-indent: 2em;
        }

        div.image {
            margin-top: 10px;
            text-align: center;
        }

        .bold {
            font-weight: bold;
        }

        div.footer div {
            text-align: center;
            color: #989797;
            line-height: 25px;

        }

        a {
            text-decoration: none
        }
    </style>
</head>

<body style="margin: 0px;">

<div class="header">
    温馨提示:
</div>

<div>
    <div class="title">绑定成功！</div>
    <div class="content">
        亲爱的超级管理员，您已经成功绑定了微信，之后我们将通过亿码通导购公众号向您推送消息和通知。
    </div>

    <div class="content">
        如果您还没关注公众号，请长按下面的二维码关注，否则不能接收通知。
    </div>
    <div class="image">
        <img src="qrcode.jpg">
    </div>
    <!--   <div >
           <div class="content">
               供货商：<span class="bold">亿码通提供技术服务</span>
           </div>
       </div>-->
    <div class="footer">
        <hr>
        <div>亿码通提供技术支持</div>
        <div>技术服务热线：<a href="tel:13271582882">13271582882</a></div>
    </div>
</div>

<script>
    $(function () {
        code = location.href.getQueryValue('code')
        state = location.href.getQueryValue('state')
        mkey = location.href.getQueryValue('mkey')
        data = {'code': code, 'state': state, 'mkey': mkey}
        var herf_url = location.protocol + '//' + location.host + '/api/merchants/system/wx_oauth';
        $.ajax({
            url: herf_url,
            type: 'POST',
            dataType: 'json',
            contentType: 'application/json;charset=UTF-8',
            data: JSON.stringify(data),
            success: function (result) {
                if (result.code !== 200) {
                    alert(result.msg)
                }
            }
        });
    })
</script>
</body>
</html>